<template>
  <div class="page-tools">
    <!-- 使用 卡片 -->
    <el-card>
      <el-row type="flex" justify="space-between" align="middle">
        <el-col :span="10">
          <div class="before" v-if="showBefore">
            <i class="el-icon-info"></i>
            <slot name="left">
              <span>本月：社保在缴 公积金在缴 增员</span>
            </slot>
          </div>
        </el-col>
        <el-col :span="4">
          <slot name="right">
            <el-button type="primary">历史扫描</el-button>
            <el-button type="primary">导出</el-button>
          </slot>
        </el-col>
      </el-row>
    </el-card>
  </div>
</template>

<script>
export default {
  // showBefore: 控制左侧内容的显示与隐藏
  props: ['showBefore']
}
</script>

<style lang="scss" scoped>
.page-tools {
  .before {
    padding: 4px 8px;
    display: inline-block;
    border: 2px solid #cfedff;
    background-color: #e6f7ff;
    i {
      color: #449eff;
      margin-right: 8px;
    }
  }
}
</style>
